package com.pro.common.service.admin.enums;

import com.pro.framework.api.enums.IEnumStr;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum EnumScheduleType implements IEnumStr {
    NONE(0, "不调度", "default"),
    CRON(1, "Cron表达式", "primary"),
    FIX_RATE(2, "固定频率", "success"),
    ;

    private final Integer value;
    private final String label;
    private final String color;

//    public static final Map<Integer, EnumScheduleType> MAP = IEnumInt.getMap(values());
//    @Override
//    public EnumScheduleType fromValueMap(Integer value) {
//        return MAP.get(value);
//    }
}
